export function uploadFile (imgUrl) {
	return new Promise((resolve, reject)=>{
		uni.uploadFile({
			url: 'http://192.168.2.170:8899/upload/file',
			filePath: imgUrl,
			header:{
			 token:uni.getStorageSync('token')
			},
			name: 'file',
			formData: {
			 folder: 7
			},
			success: (res) => {
				let list = JSON.parse(res.data)
				resolve(list)
			},
			fail: (error) => {
				reject(error)
			},
		})
	})
}